/**
 * Copyright &copy; 2013-2016 山东易科德软件有限公司   All rights reserved.
 */
package cn.net.ecode.elec.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.net.ecode.common.persistence.Page;
import cn.net.ecode.common.service.CrudService;
import cn.net.ecode.elec.entity.ElecCloseAccounts;
import cn.net.ecode.elec.dao.ElecCloseAccountsDao;

/**
 * 电量结算Service
 * @author xiaodunshan
 * @version 2019-08-31
 */
@Service
@Transactional(readOnly = true)
public class ElecCloseAccountsService extends CrudService<ElecCloseAccountsDao, ElecCloseAccounts> {
	
	/**
	 * 获取单条数据
	 * @param elecCloseAccounts
	 * @return
	 */
	public ElecCloseAccounts get(ElecCloseAccounts elecCloseAccounts) {
		return super.get(elecCloseAccounts);
	}
	
	/**
	 * 查询列表数据
	 * @param elecCloseAccounts
	 * @return
	 */
	public List<ElecCloseAccounts> findList(ElecCloseAccounts elecCloseAccounts) {
		return super.findList(elecCloseAccounts);
	}
	
	/**
	 * 查询分页数据
	 * @param page 分页对象
	 * @param elecCloseAccounts
	 * @return
	 */
	public Page<ElecCloseAccounts> findPage(Page<ElecCloseAccounts> page, ElecCloseAccounts elecCloseAccounts) {
		return super.findPage(page, elecCloseAccounts);
	}
	
	/**
	 * 保存数据（插入或更新）
	 * @param elecCloseAccounts
	 */
	@Transactional(readOnly = false)
	public void save(ElecCloseAccounts elecCloseAccounts) {
		super.save(elecCloseAccounts);
	}
	
	/**
	 * 删除数据
	 * @param elecCloseAccounts
	 */
	@Transactional(readOnly = false)
	public void delete(ElecCloseAccounts elecCloseAccounts) {
		super.delete(elecCloseAccounts);
	}
	
}